package com.nervenets.web.controller.admin;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class NoticeEditParams extends TokenParams {
    @ApiModelProperty(value = "公告Id，传0或不传时为新建")
    private long noticeId;
    @ApiModelProperty(value = "公告标题", required = true)
    @NotNull(message = "公告标题不能为空")
    private String title;
    @ApiModelProperty(value = "公告内容", required = true)
    @NotNull(message = "公告内容不能为空")
    private String content;
}
